@import "common";

html {
  height: 100%;
}
body {
  font-size: 14px;
  font-family: "メイリオ", Verdana, "Hiragino Kaku Gothic ProN", "游ゴシック", YuGothic, Meiryo, sans-serif;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

p {
  margin-top: 1rem;
  margin-bottom: 1rem;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
}

.am-animation-slide-bottom {
  animation-name: slide-bottom;
}

.am-topbar {
  z-index: 1;
  border-top: 3px solid @global-primary;
  background: @white;

  .am-topbar-btn {
    background: transparent;
    border-color: transparent;
    color: @global-primary;
  }
}

.am-topbar-brand {
  position: absolute;
  left: 50%;
  width: 100px;
  margin-left: -50px;
  background: url("../../i/logo-m.png") center no-repeat;
  background-size: 86px 37px;

  > a {
    display: block;
    width: 100%;
    height: 100%;
    text-indent: -9999px;
  }
}

.diw-topbar-nav, .diw-topbar-nav-sticky {
  background: @global-background;
  .diw-topbar-nav-list {
    display: flex;
    justify-content: center;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    > li {
      position: relative;
      width: 160px;
      height: 55px;
      padding: 5px 0;
      &:hover {
        &:after {
          content: '';
          position: absolute;
          z-index: 0;
          top: 0;
          left: (160px - 55px) / 2;
          width: 55px;
          height: 55px;
          background: url("../../i/anchor-bg.png") center no-repeat;
          animation: scale-in .4s;
        }
      }
      a {
        position: relative;
        display: block;
        z-index: 1;
        color: @text-color;
        span {
          color: @global-primary;
        }
      }
    }
  }
}

.diw-topbar-nav-sticky {
  display: none;
  position: relative;
  box-shadow: 0px 1px 6px 0px rgba(0,0,0,0.3);

  &.slide-down {
    animation: slide-down .4s;
  }

}

/* Animate */
@keyframes scale-in {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slide-down {
  0% {
    transform: translateY(-100%);
  }
  100% {
    transform: translateY(0);
  }
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes slide-bottom {
  0% {
    opacity: 0;
    transform: translateY(2em);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

.diw-footer {
  padding: 70px 0;
  background: #F6F6F6;

  h3 {
    font-weight: bold;
  }

  ul {
    list-style: none;
    padding-left: 0;
    font-size: @font-size-sm;

    .diw-footer-tel {
      display: inline-block;
      margin-top: 2em;

      &:last-child {
        margin-left: 2em;
      }
    }
  }
}

.diw-footer-bottom {
  padding: 20px 0;
  font-size: @font-size-xs;
}


.diw-section {
  margin-top: 55px;
  margin-bottom: 55px;
  min-height: 400px;
  padding: 40px 0;
  &.no-padding {
    padding: 0;
  }
  &.no-margin {
    margin: 0;
  }
  &.no-min-height {
    min-height: 0;
  }

  .am-container {
    opacity: 0;
  }
}

.diw-section-title {
  padding-bottom: 10px;
  background: url("../../i/section-title-bg.png") bottom center no-repeat;
  animation: fade-in .4s;

  &:first-child {
    margin-top: 50px;
  }
}
